package xyz.imeans.w.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "create-data")
public class CreateDataConfig {

    private Boolean enable;

    private List<Config> config;
    private Map<String, Map<String, String>> source;

    @Data
    @ConfigurationProperties(prefix = "config")
    public static class Config {
        private String source;
        private String model;
        private Integer count;

    }
}
